<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>净土</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="A blog of howiefh.">
<meta property="og:type" content="website">
<meta property="og:title" content="净土">
<meta property="og:url" content="http://howiefh.github.io/page/7/index.html">
<meta property="og:site_name" content="净土">
<meta property="og:description" content="A blog of howiefh.">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="净土">
<meta name="twitter:description" content="A blog of howiefh.">
  
    <link rel="alternative" href="/atom.xml" title="净土" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.ico">
  
  <link href="http://fonts.useso.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  <link rel="stylesheet" href="/css/style.css" type="text/css">
  
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-40492061-1', 'auto');
ga('send', 'pageview');

</script>


  
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?56d2899c5e919fbf4a7b00de5d1c31dd";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>


</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">净土</a>
      </h1>
      
        <h2 id="subtitle-wrap">
          <a href="/" id="subtitle">乐不在外而在心，心以为乐，则是境皆乐；心以为苦，则无境不苦。</a>
        </h2>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-github-link" class="nav-icon" href="https://github.com/howiefh" title="Github" target="_blank"></a>
        
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed" target="_blank"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://howiefh.github.io"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main">
  
    <article id="post-linux-system-info" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2014/02/03/linux-system-info/" class="article-date">
  <time datetime="2014-02-03T07:59:04.000Z" itemprop="datePublished">2014-02-03</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Linux/">Linux</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2014/02/03/linux-system-info/">Linux系统信息</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="查看cpu详细情况">查看cpu详细情况</h2><ul>
<li>cpu 个数  <figure class="highlight nimrod"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat /<span class="keyword">proc</span>/cpuinfo | grep <span class="string">"physical id"</span> | sort | uniq | wc -l</span><br></pre></td></tr></table></figure></li>
<li>cpu core 个数  <figure class="highlight nimrod"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat /<span class="keyword">proc</span>/cpuinfo | grep <span class="string">"cpu cores"</span> | uniq</span><br></pre></td></tr></table></figure></li>
<li>逻辑cpu 个数  <figure class="highlight nimrod"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat /<span class="keyword">proc</span>/cpuinfo | grep <span class="string">"processor"</span> | uniq</span><br></pre></td></tr></table></figure>
  逻辑cpu个数不等于cpu 个数乘以 cpu 核个数，说明支持超线程。</li>
</ul>
        
          <p class="article-more-link">
            <a href="/2014/02/03/linux-system-info/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2014/02/03/linux-system-info/" data-id="cie0u23ij0078jvduza2km2bi" data_title="Linux系统信息" data_summary="查看cpu详细情况
cpu 个数  1cat /pro..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2014/02/03/linux-system-info/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2014/02/03/linux-system-info/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Linux/">Linux</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T07:44:12.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-best-vim-tips" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2014/01/26/best-vim-tips/" class="article-date">
  <time datetime="2014-01-26T09:48:52.000Z" itemprop="datePublished">2014-01-26</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Vim/">Vim</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2014/01/26/best-vim-tips/">Best of Vim Tips 中文版</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>这篇文章出自：<a href="https://groups.google.com/d/msg/vim-cn/XCVyjj7svs4/AVGVRQa6L_cJ">https://groups.google.com/d/msg/vim-cn/XCVyjj7svs4/AVGVRQa6L_cJ</a></p>
        
          <p class="article-more-link">
            <a href="/2014/01/26/best-vim-tips/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2014/01/26/best-vim-tips/" data-id="cie0u23ir007ijvduubt60pud" data_title="Best of Vim Tips 中文版" data_summary="这篇文章出自：https://groups.googl..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2014/01/26/best-vim-tips/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2014/01/26/best-vim-tips/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Vim/">Vim</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T07:43:41.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-vim-is-the-god-of-all-editors" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/12/02/vim-is-the-god-of-all-editors/" class="article-date">
  <time datetime="2013-12-02T12:27:18.000Z" itemprop="datePublished">2013-12-02</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Vim/">Vim</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/12/02/vim-is-the-god-of-all-editors/">编辑器之神Vim</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>世界上有三种程序员，一种用Emacs，一种用Vi，剩下的是用其它编辑器的。Emacs是神的编辑器，<a href="http://www.vim.org/">Vim</a>是编辑器之神。选择Vim还是Emacs，编辑器之争到今天也不曾有什么定论，也不可能有什么定论。有人说Emacs是伪装成编辑器的操作系统，这句话并不夸张，Emacs有一个强大的语言Lisp作支撑。Vim是由<a href="http://www.moolenaar.net">Bram Moolenaar</a>发布的Vi的衍生版本，增加了非常多的新特性，也是最受欢迎的一个版本，现在有些Linux发行版本默认情况下会将Vi直接链接到Vim。相对来讲，Vim的脚本语言弱一些，Vim则更专注于做强大的编辑器。Vim 的设计则更符合UNIX哲学－－“Do one thing and do it well”。<br>
        
          <p class="article-more-link">
            <a href="/2013/12/02/vim-is-the-god-of-all-editors/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/12/02/vim-is-the-god-of-all-editors/" data-id="cie0u23iw007ljvdu4lvnudku" data_title="编辑器之神Vim" data_summary="世界上有三种程序员，一种用Emacs，一种用Vi，剩下..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/12/02/vim-is-the-god-of-all-editors/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/12/02/vim-is-the-god-of-all-editors/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Vim/">Vim</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T07:43:29.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-lesser-known-useful-commands" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/11/17/lesser-known-useful-commands/" class="article-date">
  <time datetime="2013-11-17T09:16:56.000Z" itemprop="datePublished">2013-11-17</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Linux/">Linux</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/11/17/lesser-known-useful-commands/">鲜为人知的Linux命令</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="sudo_!!_命令">sudo !! 命令</h2><p>使用sudo命令执行上一条命令</p>
<h2 id="python命令">python命令</h2><p>下面的命令生产一个通过HTTP显示文件夹(家目录)结构树的简单网页，可以通过浏览器在端口8000访问，直到发出中断信号。<br><figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">python -m SimpleHTTPServer</span><br></pre></td></tr></table></figure></p>
        
          <p class="article-more-link">
            <a href="/2013/11/17/lesser-known-useful-commands/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/11/17/lesser-known-useful-commands/" data-id="cie0u23j0007ojvduibcgkmbo" data_title="鲜为人知的Linux命令" data_summary="sudo !! 命令使用sudo命令执行上一条命令
p..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/11/17/lesser-known-useful-commands/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/11/17/lesser-known-useful-commands/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Linux/">Linux</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T07:43:11.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-install-pam_mysql-on-suse-11-sp2" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/11/09/install-pam_mysql-on-suse-11-sp2/" class="article-date">
  <time datetime="2013-11-09T02:52:17.000Z" itemprop="datePublished">2013-11-09</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Suse/">Suse</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/11/09/install-pam_mysql-on-suse-11-sp2/">在SUSE 11 SP2 中安装pam_mysql</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>近期项目中需要在SUSE服务器中安装vsftpd，并且需要设置虚拟用户，使用mysql来管理虚拟用户，这就需要安装pam_mysql了。在ubuntu下，安装软件很轻松，但是在SUSE下就不太方便了，最要命的是上网还不太方便。折腾了小半天，终于算是装上了，好了，现在总结一下安装的过程和遇到的问题吧。<br>
        
          <p class="article-more-link">
            <a href="/2013/11/09/install-pam_mysql-on-suse-11-sp2/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/11/09/install-pam_mysql-on-suse-11-sp2/" data-id="cie0u23j3007rjvdudzvjdah5" data_title="在SUSE 11 SP2 中安装pam_mysql" data_summary="近期项目中需要在SUSE服务器中安装vsftpd，并且..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/11/09/install-pam_mysql-on-suse-11-sp2/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/11/09/install-pam_mysql-on-suse-11-sp2/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Suse/">Suse</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/pam-mysql/">pam_mysql</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T07:43:01.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-php-note-4" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/08/03/php-note-4/" class="article-date">
  <time datetime="2013-08-03T07:58:39.000Z" itemprop="datePublished">2013-08-03</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/PHP/">PHP</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/08/03/php-note-4/">php学习笔记(4)-字符串与正则表达式</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="去空格">去空格</h2><p>trim()函数去掉头尾两边的空格。<br>ltrim()函数去掉开始的空格。<br>rtrim()函数去掉结尾的空格。<br>
        
          <p class="article-more-link">
            <a href="/2013/08/03/php-note-4/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/08/03/php-note-4/" data-id="cie0u23j8007yjvduzv58o6jm" data_title="php学习笔记(4)-字符串与正则表达式" data_summary="去空格trim()函数去掉头尾两边的空格。ltrim(..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/08/03/php-note-4/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/08/03/php-note-4/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/PHP/">PHP</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T08:01:42.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-php-note-3" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/08/03/php-note-3/" class="article-date">
  <time datetime="2013-08-03T07:38:39.000Z" itemprop="datePublished">2013-08-03</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/PHP/">PHP</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/08/03/php-note-3/">php学习笔记(3)-数组</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="数字索引数组">数字索引数组</h2><p>初始化<br><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$products</span> = <span class="keyword">array</span>(<span class="string">'Tires'</span>, <span class="string">'Oil'</span>, <span class="string">'Spark Plugs'</span>);</span><br><span class="line"><span class="variable">$numbers</span> = range(<span class="number">0</span>, <span class="number">10</span>);</span><br><span class="line"><span class="variable">$odd</span> = range(<span class="number">0</span>, <span class="number">10</span>, <span class="number">2</span>);</span><br><span class="line"><span class="variable">$letters</span> = range(<span class="string">'a'</span>, <span class="string">'z'</span>);</span><br></pre></td></tr></table></figure></p>
<p>访问<br><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">echo</span> <span class="variable">$products</span>[<span class="number">0</span>]</span><br><span class="line"><span class="variable">$products</span>[<span class="number">3</span>] = <span class="string">'Fuses'</span>;  <span class="comment">//添加新元素</span></span><br></pre></td></tr></table></figure></p>
<p>使用循环访问<br><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">for</span> (<span class="variable">$i</span> = <span class="number">0</span>; <span class="variable">$i</span> &lt; <span class="number">3</span>; <span class="variable">$i</span>++)&#123;</span><br><span class="line">	<span class="keyword">echo</span> <span class="variable">$products</span>[<span class="variable">$i</span>] . <span class="string">" "</span>;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">foreach</span>(<span class="variable">$products</span> <span class="keyword">as</span> <span class="variable">$current</span>)&#123;</span><br><span class="line">	<span class="keyword">echo</span> <span class="variable">$current</span> . <span class="string">" "</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
        
          <p class="article-more-link">
            <a href="/2013/08/03/php-note-3/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/08/03/php-note-3/" data-id="cie0u23jf0081jvdubhmbnpoa" data_title="php学习笔记(3)-数组" data_summary="数字索引数组初始化1234$products = ar..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/08/03/php-note-3/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/08/03/php-note-3/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/PHP/">PHP</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T08:01:36.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-php-note-2" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/08/01/php-note-2/" class="article-date">
  <time datetime="2013-08-01T07:38:39.000Z" itemprop="datePublished">2013-08-01</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/PHP/">PHP</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/08/01/php-note-2/">php学习笔记(2)-数据存储与检索</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="打开文件">打开文件</h2><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">resource fopen ( string <span class="variable">$filename</span> , string <span class="variable">$mode</span> [, bool <span class="variable">$use_include_path</span> = <span class="keyword">false</span> [, resource <span class="variable">$context</span> ]] )</span><br></pre></td></tr></table></figure>
<ul>
<li>filename:文件名  </li>
<li>mode:打开文件模式(r,r+,w,w+,x,x+,a,a+,b,t)  <ul>
<li>出于移植性考虑，在打开文件时总是使用’b’标记</li>
<li>只是windows下的选项，不是推荐选项</li>
</ul>
</li>
<li>use_include_path:如果也需要在 include_path 中搜寻文件的话，可以将可选的第三个参数 use_include_path 设为 ‘1’ 或 TRUE。  </li>
<li>context:在 PHP 5.0.0 中增加了对上下文（Context）的支持。有关上下文（Context）的说明参见 Streams。  </li>
<li>$_SERVERR[‘DOCUMENT_ROOT’]:文档根目录  /var/www  </li>
</ul>
<p>问题：<br>由于权限问题，fopen可能无法成功打开文件，返回有效的文件指针<br>解决：使用错误抑制操作符<br><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">@ <span class="variable">$fp</span> = fopen(<span class="string">"$DOCUMENT_ROOT/../orders/orders.txt"</span>, <span class="string">'ab'</span>);</span><br><span class="line"><span class="keyword">if</span> (!<span class="variable">$fp</span>) &#123;</span><br><span class="line">  <span class="keyword">echo</span> <span class="string">"&lt;p&gt;&lt;strong&gt; Your order could not be processed at this time.</span><br><span class="line">		Please try again later.&lt;/strong&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;"</span>;</span><br><span class="line">  <span class="keyword">exit</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
        
          <p class="article-more-link">
            <a href="/2013/08/01/php-note-2/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/08/01/php-note-2/" data-id="cie0u23jk0084jvdu669h3mau" data_title="php学习笔记(2)-数据存储与检索" data_summary="打开文件1resource fopen ( strin..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/08/01/php-note-2/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/08/01/php-note-2/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/PHP/">PHP</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T08:02:03.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-php-note-1" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/07/31/php-note-1/" class="article-date">
  <time datetime="2013-07-31T07:38:39.000Z" itemprop="datePublished">2013-07-31</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/PHP/">PHP</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/07/31/php-note-1/">php学习笔记(1)-快速入门</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="标记风格">标记风格</h2><ul>
<li>xml(推荐) <code>&lt;?php .... ?&gt;</code></li>
<li>简短风格 <code>&lt;? .... ?&gt;</code></li>
<li>script风格 <code>&lt;script language=&quot;php&quot;&gt;....&lt;/script&gt;</code></li>
<li>asp风格 <code>&lt;% ... %&gt;</code></li>
</ul>
        
          <p class="article-more-link">
            <a href="/2013/07/31/php-note-1/#more">Read More</a>
          </p>
        
      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/07/31/php-note-1/" data-id="cie0u23jn0087jvdu5bfjw3lf" data_title="php学习笔记(1)-快速入门" data_summary="标记风格
xml(推荐) &lt;?php .... ..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/07/31/php-note-1/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/07/31/php-note-1/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/PHP/">PHP</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T08:01:14.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
    <article id="post-repeat-one-song-rhythmbox" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    
<a href="/2013/07/30/repeat-one-song-rhythmbox/" class="article-date">
  <time datetime="2013-07-30T07:38:39.000Z" itemprop="datePublished">2013-07-30</time>
</a>


    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Ubuntu/">Ubuntu</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2013/07/30/repeat-one-song-rhythmbox/">Rhythmbox单曲循环</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
		
		<div id="toc" class="toc-article">
			<h2 class="toc-title"><span>Contents</span></h2>
		
			
		
		</div>
		
        <p>单曲循环插件——Repeat One Song<br>主页：<a href="https://launchpad.net/repeat-one-song" target="_blank" rel="external">https://launchpad.net/repeat-one-song</a></p>
<p>下载解压后，可以把repeat-one-song文件夹放~/.gnome2/rhythmbox/plugins/，/usr/lib/rhythmbox/plugins或~/.local/share/rhythmbox/plugins目录下面（没有这些目录的话，可以自行创建）。然后打开Rhythmbox，在菜单栏中找到“编辑”—&gt;“插件”找到“Repeat One Song”勾选。</p>
<p>ps:我在Ubuntu 12.04下用的是rhythmbox 2.96，把插件放在~/.gnome2/rhythmbox/plugins/，/usr/lib/rhythmbox/plugins目录下面都没有正常显示插件。只有放~/.local/share/rhythmbox/plugins下才能正常工作。</p>

      
    </div>
    <footer class="article-footer">
	  
	  <a data-url="http://howiefh.github.io/2013/07/30/repeat-one-song-rhythmbox/" data-id="cie0u23jr008ajvduouomueco" data_title="Rhythmbox单曲循环" data_summary="单曲循环插件——Repeat One Song主页：h..." class="article-share-link">Share</a>
      

      
        <a href="http://howiefh.github.io/2013/07/30/repeat-one-song-rhythmbox/#ds-thread" class="ds-thread-count article-comment-link" data-thread-key="/2013/07/30/repeat-one-song-rhythmbox/">暂无评论</a>
      
	  
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Rhythmbox/">Rhythmbox</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Ubuntu/">Ubuntu</a></li></ul>

	  
<span>
Updated:<time datetime="2014-12-24T07:42:37.000Z" itemprop="dateModified">2014-12-24</time>
</span>


    </footer>
  </div>
  
</article>



<!-- 多说评论框 start -->

<!-- 多说评论框 end -->

  
  
    <nav id="page-nav">
      <a class="extend prev" rel="prev" href="/page/6/">&laquo; Prev</a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/5/">5</a><a class="page-number" href="/page/6/">6</a><span class="page-number current">7</span><a class="page-number" href="/page/8/">8</a><a class="extend next" rel="next" href="/page/8/">Next &raquo;</a>
    </nav>
  
</section>
        
          
<aside id="sidebar">

  
    
<div class="widget-wrap">
  <h3 class="widget-title">ABOUT ME</h3>
  <ul class="widget about-me">
    
    <li><img class="author" title="About me" src="http://fh-1.qiniudn.com/okal-eltocat.jpg" /></li>
    
    
    <li>Hi,I'm FengHao.</li>
    
    <li>I'll share something interesting and my learning experience with you at this blog.</li>
    
    <li>前博客:<a href="http://hi.baidu.com/idea_star" target="_BLANK">百度空间</a></li>
    
  </ul>
</div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Android/">Android</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/C/">C</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Database/">Database</a><span class="category-list-count">13</span><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/Database/MongoDB/">MongoDB</a><span class="category-list-count">10</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Database/MySQL/">MySQL</a><span class="category-list-count">2</span></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/Eclipse/">Eclipse</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/FTP/">FTP</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Git/">Git</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Hexo/">Hexo</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Java/">Java</a><span class="category-list-count">20</span><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/Java/FreeMarker/">FreeMarker</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Java/Shiro/">Shiro</a><span class="category-list-count">2</span></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/JavaEE/">JavaEE</a><span class="category-list-count">4</span><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/JavaEE/Hibernate/">Hibernate</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/JavaEE/JSP/">JSP</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/JavaEE/Spring/">Spring</a><span class="category-list-count">2</span></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/JavaScript/">JavaScript</a><span class="category-list-count">5</span><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/JavaScript/jQuery/">jQuery</a><span class="category-list-count">1</span></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/Linux/">Linux</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/PHP/">PHP</a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Suse/">Suse</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Ubuntu/">Ubuntu</a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Vim/">Vim</a><span class="category-list-count">8</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/编程/">编程</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/软件/">软件</a><span class="category-list-count">1</span></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/Android/" style="font-size: 14.75px; color: #65bfa7">Android</a> <a href="/tags/C/" style="font-size: 13.88px; color: #71c1c2">C</a> <a href="/tags/CAS/" style="font-size: 13px; color: #7dc3de">CAS</a> <a href="/tags/Chrome/" style="font-size: 13px; color: #7dc3de">Chrome</a> <a href="/tags/Clean-Code/" style="font-size: 13.88px; color: #71c1c2">Clean Code</a> <a href="/tags/Database/" style="font-size: 13px; color: #7dc3de">Database</a> <a href="/tags/Eclipse/" style="font-size: 13px; color: #7dc3de">Eclipse</a> <a href="/tags/FTP/" style="font-size: 13.88px; color: #71c1c2">FTP</a> <a href="/tags/FreeMarker/" style="font-size: 14.75px; color: #65bfa7">FreeMarker</a> <a href="/tags/Gcc/" style="font-size: 13px; color: #7dc3de">Gcc</a> <a href="/tags/Git/" style="font-size: 14.75px; color: #65bfa7">Git</a> <a href="/tags/Github-Pages/" style="font-size: 13px; color: #7dc3de">Github Pages</a> <a href="/tags/Hexo/" style="font-size: 14.75px; color: #65bfa7">Hexo</a> <a href="/tags/Hibernate/" style="font-size: 13px; color: #7dc3de">Hibernate</a> <a href="/tags/JSP/" style="font-size: 13px; color: #7dc3de">JSP</a> <a href="/tags/JVM/" style="font-size: 14.75px; color: #65bfa7">JVM</a> <a href="/tags/Java/" style="font-size: 14.75px; color: #65bfa7">Java</a> <a href="/tags/JavaMail/" style="font-size: 13px; color: #7dc3de">JavaMail</a> <a href="/tags/JavaScript/" style="font-size: 16.5px; color: #4dbc6f">JavaScript</a> <a href="/tags/Linux/" style="font-size: 13.88px; color: #71c1c2">Linux</a> <a href="/tags/Log/" style="font-size: 13px; color: #7dc3de">Log</a> <a href="/tags/Markdown/" style="font-size: 13.88px; color: #71c1c2">Markdown</a> <a href="/tags/MongoDB/" style="font-size: 20px; color: #1db400">MongoDB</a> <a href="/tags/MySQL/" style="font-size: 13.88px; color: #71c1c2">MySQL</a> <a href="/tags/PHP/" style="font-size: 16.5px; color: #4dbc6f">PHP</a> <a href="/tags/Rhythmbox/" style="font-size: 13px; color: #7dc3de">Rhythmbox</a> <a href="/tags/SSO/" style="font-size: 13px; color: #7dc3de">SSO</a> <a href="/tags/Servlet/" style="font-size: 13px; color: #7dc3de">Servlet</a> <a href="/tags/Shiro/" style="font-size: 13.88px; color: #71c1c2">Shiro</a> <a href="/tags/Spring/" style="font-size: 13.88px; color: #71c1c2">Spring</a> <a href="/tags/Suse/" style="font-size: 13px; color: #7dc3de">Suse</a> <a href="/tags/Thinking-in-Java/" style="font-size: 19.13px; color: #29b61c">Thinking in Java</a> <a href="/tags/Ubuntu/" style="font-size: 17.38px; color: #41ba53">Ubuntu</a> <a href="/tags/Vim/" style="font-size: 18.25px; color: #35b838">Vim</a> <a href="/tags/VirtualBox/" style="font-size: 13px; color: #7dc3de">VirtualBox</a> <a href="/tags/Vsftpd/" style="font-size: 13px; color: #7dc3de">Vsftpd</a> <a href="/tags/jQuery/" style="font-size: 13px; color: #7dc3de">jQuery</a> <a href="/tags/pam-mysql/" style="font-size: 13px; color: #7dc3de">pam_mysql</a> <a href="/tags/小米/" style="font-size: 13px; color: #7dc3de">小米</a> <a href="/tags/软件/" style="font-size: 15.63px; color: #59bd8b">软件</a>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/09/">September 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/08/">August 2015</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/07/">July 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/05/">May 2015</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/04/">April 2015</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/03/">March 2015</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/02/">February 2015</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/12/">December 2014</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/11/">November 2014</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/10/">October 2014</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/09/">September 2014</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/08/">August 2014</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/07/">July 2014</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/06/">June 2014</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/05/">May 2014</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/04/">April 2014</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/03/">March 2014</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/02/">February 2014</a><span class="archive-list-count">11</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/01/">January 2014</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/12/">December 2013</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/11/">November 2013</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/08/">August 2013</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/07/">July 2013</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/06/">June 2013</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/05/">May 2013</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/04/">April 2013</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/03/">March 2012</a><span class="archive-list-count">1</span></li></ul>
    </div>
  </div>


  
    <div class="widget-wrap">
  <h3 class="widget-title">Calendar</h3>
  <div class="widget">
    <div id="g-calendar" class="g-calendar">
        <span class="g-calendar-prev"></span>
		 
        <span class="g-calendar-next"></span>
        <div class="g-calendar-hd"></div>
        <div class="g-calendar-tit"></div>
        <div class="g-calendar-bd"></div>
    </div>
  </div>
</div>
<script type="text/javascript">
function LGY_calendar(wrapId, options){
    this.oWrap = this.getId(wrapId);
    this.oHead = this.getByClassName('g-calendar-hd',this.oWrap)[0];
    this.oBody = this.getByClassName('g-calendar-bd',this.oWrap)[0];
    this.oTit = this.getByClassName('g-calendar-tit',this.oWrap)[0];
    this.oPrev = this.getByClassName('g-calendar-prev',this.oWrap)[0];
    this.oNext = this.getByClassName('g-calendar-next',this.oWrap)[0];
    this.oNow = this.getByClassName('g-calendar-now',this.oWrap)[0];
    this.oBack = this.getByClassName('g-calendar-back',this.oWrap)[0];
    this.init();
}
LGY_calendar.prototype = {
    ///////////获取ID元素
    getId:function(id){
        return document.getElementById(id);
    },
    ////////获取css类名元素
    getByClassName:function(className,parent){
        var elem = [],
            node = parent != undefined&&parent.nodeType==1?parent.getElementsByTagName('*'):document.getElementsByTagName('*'),
            p = new RegExp("(^|\\s)"+className+"(\\s|$)");
        for(var n=0,i=node.length;n<i;n++){
            if(p.test(node[n].className)){
                elem.push(node[n]);
            }
        }
        return elem;
    },
    //填充日历
    fillDate:function(year,month){
        //本月份第一天是星期几-为显示上个月的天数做铺垫
        var first_day = new Date(year,month,1).getDay(),
        //如果刚好是星期天，则空出一行（显示上个月的天数）
            first_day = first_day == 0?first_day=7:first_day;
        //本月份最后一天是几号
        var final_date = new Date(year,month+1,0).getDate(),
        //上个月的最后一天是几号
            last_date = new Date(year,month,0).getDate(),
        //剩余的格子数--即排在末尾的格子数
            surplus = 42 - first_day - final_date;
        //设置年的链接
        var yearHead = "<a href='/" + "archives/" + year + "/'>" + year + " "+ "</a>"; 
        //设置年的链接
        var monthHead = "";
        var month1 = month + 1;
        if (month1 < 10) {
            monthHead = "<a href='/" + "archives/" + year + "/" + "0" + month1 + "/'>" + " " + month1 + " " + "</a>";
        } else {
            monthHead = "<a href='/" + "archives/" + year + "/" + month1 + "/'>" + " " + month1 + " " + "</a>";
        }
        //设置表头的日历
        this.oHead.innerHTML = yearHead+'年'+monthHead+'月';
        //填充日历执行
        var html = '';
        //上个月的显示天数
        for(var i=0;i<first_day;i++){
            html+='<span class="g-calendar-grey">'+(last_date-(first_day-1)+i)+'</span>';
        }
        //本月的显示天数
        var postdate = new Date("undefined"); 
        if (false && postdate.getFullYear() == year && postdate.getMonth() == month) { 
            html += '';
        } else {
            for(var j=0;j<final_date;j++){        
                html+='<span id="d'+(j+1)+'">'+(j+1)+'</span>';
            }
        }
        //下个月的显示天数
        for(var k=0;k<surplus;k++){
            html+='<span class="g-calendar-grey">'+(k+1)+'</span>';
        }
        //fill
        this.oBody.innerHTML = html;
        // 当前状态
        if(year==this.c_year&&this.c_month==month){
            this.oBody.getElementsByTagName('span')[first_day+this.date-1].className='g-calendar-on';
        }

        // 对所有文章遍历,然后将有文章的日期加上链接,如果文章太多的话,生成页面会很大,去掉了
        
    },
    // next切换
    next:function(){
        var _that = this;
        this.oNext.onclick = function(){
            _that.month++;
            if(_that.month>11){
                _that.month = 0;
                _that.year++;
            }
            // 填充日历
            _that.fillDate(_that.year,_that.month);
        };
    },
    // back 切换
    back:function(){
        var _that = this;
        if(this.oBack != undefined) {
            this.oBack.onclick = function(){
                var postdate = new Date("undefined"); 
                _that.year = postdate.getFullYear();
                _that.month = postdate.getMonth();
                // 填充日历
                _that.fillDate(_that.year,_that.month);
            };
        }
    },
    // now切换
    now:function(){
        var _that = this;
        if(this.oNow != undefined ) {
            this.oNow.onclick = function(){
                var nowDate = new Date(); 
                _that.year = nowDate.getFullYear();
                _that.month = nowDate.getMonth();
                // 填充日历
                _that.fillDate(_that.year,_that.month);
            };
        }
    },
    // prev切换
    prev:function(){
        var _that = this;
        this.oPrev.onclick = function(){
            _that.month--;
            if(_that.month<0){
                _that.month = 11;
                _that.year--;
            }
            // 填充日历
            _that.fillDate(_that.year,_that.month);
        };
    },
    init:function(){
        this.oTit.innerHTML = '<span>日</span><span>一</span><span>二</span><span>三</span><span>四</span><span>五</span><span>六</span>';
        // 获取今天的日历时间
        var now = new Date();
        this.c_year = this.year = now.getFullYear();
        this.c_month = this.month = now.getMonth();
        this.date = now.getDate();
        // 初始化--填充日历
        this.fillDate(this.year,this.month);
        //next切换
        this.next();
        //prev切换
        this.prev();
        //back 切换
        this.back();
        //now 切换
        this.now();
    }
}
new LGY_calendar('g-calendar');
</script>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2015/09/01/javascript-summary/">JavaScript 总结</a>
          </li>
        
          <li>
            <a href="/2015/08/28/javascript-oop-function-expression-and-async/">JavaScript 面向对象程序设计、函数表达式和异步编程</a>
          </li>
        
          <li>
            <a href="/2015/08/28/javascript-reference-type/">JavaScript 引用类型</a>
          </li>
        
          <li>
            <a href="/2015/08/28/javascript-grammar/">JavaScript 基本语法</a>
          </li>
        
          <li>
            <a href="/2015/08/10/java-web/">Java Web 笔记</a>
          </li>
        
      </ul>
    </div>
  </div>


  
    
<div class="widget-wrap">
  <h3 class="widget-title">Recent Comments</h3>
  <ul class="widget ds-recent-comments" data-num-items="5" data-show-avatars="0" data-show-title="1" data-show-time="1"></ul>
</div>
<!-- 需要多说的公用代码 -->


  

</aside>

        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2015 howiefh<br>
      Powered by <a href="http://zespia.tw/hexo/" target="_blank">Hexo</a> and Theme by <a href="https://github.com/howiefh/hexo-theme-landscape-f" target="_blank" title="Landscape-F">Landscape-F</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<!-- 多说公共JS代码 start (一个网页只需插入一次) -->

<script type="text/javascript">
  var duoshuoQuery = {short_name:"howiefh"};
  (function() {
	var ds = document.createElement('script');
	ds.type = 'text/javascript';ds.async = true;
	ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
	ds.charset = 'UTF-8';
	(document.getElementsByTagName('head')[0] 
		|| document.getElementsByTagName('body')[0]).appendChild(ds);
  })();
</script> 

<!-- 多说公共JS代码 end -->

<!-- 百度分享 start -->

<!-- 百度分享 end -->

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="/js/jquery.min.js"></script>
-->
<script src="/js/jquery.min.js" type="text/javascript"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css" type="text/css">
  <script src="/fancybox/jquery.fancybox.pack.js" type="text/javascript"></script>


<div class="bottom-btn">

	<a class="icon-gotop" href="javascript:void(0)" title="返回顶部"></a>
	<script src="/js/gotop.js" type="text/javascript"></script>
	<!--
	<script src="/js/gotop.js"></script>
	-->


</div>
<script src="/js/toc_aside_toggle.js" type="text/javascript"></script>


<script src="/js/script.js" type="text/javascript"></script>

  </div>
</body>
</html>
